<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
 
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
	<spring:message var="pageTitle" code="ajouterUtilisateur.pageTitle" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>${pageTitle}</title>
</head>
<body>
	<div id="gestionUtilisateurs">
		<h2>Liste des utilisateurs</h2>
		<table class="table-curved">
		<thead>
			<tr>
				<th width="10%">id</th>
				<th width="25%">Prénom Nom</th>
				<th width="10%">actions</th>
			</tr>
		</thead>
		<tbody>			
		<c:forEach var="user" items="${listUsers}">
			<tr>
			    <td>${user.idUser}</td>
			    <td>${user.firstName} ${user.lastName}</td>				
			    <td>	
			            <a href="<c:url value="/admin/utilisateur/edit/${user.idUser}">
        				</c:url>">Editer</a>		
						<br>
			            <a href="<c:url value="/admin/utilisateur/delete/${user.idUser}">
        				</c:url>">Effacer</a>		
						<br>						
			    </td>		
			</tr>		
		</c:forEach>
		</tbody>
		</table>
	</div>
</body>
</html>